package org.example.projecttwo.entity.dto.content.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(description = "文章列表查询条件DTO")
public class ArticleListDTO {
    @Schema(description = "关键词搜索", example = "Java编程")
    private String keyword;

    @Schema(description = "文章状态：0-草稿、1-待审核、2-审核通过、3-审核未通过、4-已下架、5-已删除", example = "0")
    private Integer status;

    @Schema(description = "分区编码：全部(all)、社交(social)、游戏(game)、校园吐槽(campus_chat)、日常干货(daily_tips)、学习交流(study)、二手闲置(second_hand)、精品文章(featured)", example = "study")
    private String partitionCode;

    @Schema(description = "开始时间，格式：yyyy-MM-dd HH:mm:ss", example = "2023-01-01 00:00:00")
    private String startTime;

    @Schema(description = "结束时间，格式：yyyy-MM-dd HH:mm:ss", example = "2023-12-31 23:59:59")
    private String endTime;

    @Schema(description = "当前页码，默认1", example = "1")
    private Long current = 1L;

    @Schema(description = "每页条数，默认10", example = "10")
    private Long size = 10L;

    @Schema(description = "是否只查询精品文章：0-否，1-是，默认0", example = "0")
    private Integer isFeatured = 0;
}